
import {post, get} from '../../utils/request'

// 获取店铺详情
export function fetchStore(id) {
  return new Promise((resolve, reject) => {
    post('/home/store/index', {id: id}).then(res => {
      if (res.code == 200) {
        resolve(res.data)
      } else {
        reject(res.msg)
      }
    })
  });
}

// 获取厅详情
export function fetchHalls(sid) {
  return new Promise((resolve, reject) => {
    post('/home/store/halls', {sid: sid}).then(res => {
      if (res.code == 200) {
        resolve(res.data)
      } else {
        reject(res.msg)
      }
    })
  });
}
